package com.coocaa.ops.admin.v1.panel.service.impl;

import com.coocaa.ops.admin.v1.panel.provider.IPanelInfoQueryProvider;
import com.coocaa.ops.admin.v1.panel.service.IPanelInfoQueryService;
import com.coocaa.ops.common.core.biz.panel.entity.PanelInfoEntity;
import com.coocaa.ops.admin.v1.panel.model.PanelInfoModel;

import com.coocaa.ops.common.core.base.model.PageResultModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author bjh
 * @description 板块信息原始表-查询service接口实现
 * @date : 2020-06-15 14:40:18
 */
@Service
public class PanelInfoQueryServiceImpl implements IPanelInfoQueryService {
    @Autowired
    private IPanelInfoQueryProvider thisQueryProvider;

    /**
     * 获取详情信息
     *
     * @param id
     * @param version
     * @return
     */
    @Override
    public PanelInfoEntity getDetailInfo(Integer id, Integer version) {
        PanelInfoEntity entity = thisQueryProvider.getDetailInfo(id, version);
        return entity;

    }

    /**
     * 分页数据-菜单自己使用
     *
     * @param model
     * @return
     */
    @Override
    public PageResultModel<PanelInfoEntity> pageList(PanelInfoModel model) {
        PageResultModel<PanelInfoEntity> pageResultModel = thisQueryProvider.pageList(model);
        return pageResultModel;

    }


    /**
     * 分页数据-其他处选择
     *
     * @param model
     * @return
     */
    @Override
    public PageResultModel<PanelInfoEntity> dataList(PanelInfoModel model) {
        PageResultModel<PanelInfoEntity> pageResultModel = thisQueryProvider.dataList(model);
        return pageResultModel;

    }


}
